//
//  UITextField+Extension.h
//  Instagram
//
//  Created by monkey on 2019/4/13.
//  Copyright © 2019 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITextField (Extension)
/**
 便利构造方法

 @param placeholder 占位文本
 @param fontSize 字体大小
 @param textColor 字体颜色
 @param isSecureTextEntry 是否是安全文本
 @param keyboardType 键盘类型
 @return UITextField
 */
+ (instancetype)textFieldWithPlaceholder:(NSString *)placeholder fontSize:(CGFloat)fontSize textColor:(UIColor *)textColor isSecureTextEntry:(BOOL)isSecureTextEntry keyboardType:(UIKeyboardType)keyboardType;;
- (instancetype)initWithPlaceholder:(NSString *)placeholder fontSize:(CGFloat)fontSize textColor:(UIColor *)textColor isSecureTextEntry:(BOOL)isSecureTextEntry keyboardType:(UIKeyboardType)keyboardType;

@end

NS_ASSUME_NONNULL_END
